﻿@model myFinance.Models.GrupoDespesa
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Cadastro</title>
    @if (false)
    {
        <script type="text/javascript" src="../../Scripts/jquery-1.6.4-vsdoc.js"></script>
        <script type="text/javascript" src="../../Scripts/jquery.validate-vsdoc.js"></script>
        <script type="text/javascript" src="../../Scripts/jquery.validate.js"></script>
        <script type="text/javascript" src="../../Scripts/numbers.js"></script>
        <script type="text/javascript" src="../../Scripts/script.js"></script>
    }
    @if (!Request.IsAjaxRequest())
    {
        <link href="@Url.Content("~/Content/SiteRestrito.css")" rel="stylesheet" type="text/css" />
@*<link href="@Url.Content("~/Content/SiteRestrito-min.css")" rel="stylesheet" type="text/css" />*@
        <link href="@Url.Content("~/Content/fancybox/fancybox-1.3.4.css")" rel="stylesheet" type="text/css" />
        <script src="@Url.Content("~/Scripts/jquery-1.6.4.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/script.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.maskedinput-1.3.min.js")" type="text/javascript"></script>
        
        <script src="@Url.Content("~/Scripts/jquery.easing-1.3.pack.js")" type="text/javascript"></script>    
        <script src="@Url.Content("~/Scripts/jquery.fancybox-1.3.4-min.js")" type="text/javascript"></script>         
        <script src="@Url.Content("~/Scripts/numbers.js")" type="text/javascript"></script>
    }
    <style type="text/css">
        #corpo
        {
            height: 500px;
            margin: auto;
            width: 900px;
            padding: 0;
        }
        #Nome
        {
            width: 400px;
        }
    </style>
</head>
<body>
   
    <a href="#novogrupo" data-url="@Url.Action("CadastroGrupoDespesa", "GrupoDespesa")/0" id="novogrupo">
        Novo grupo ou sub-grupo de despesa</a>
    <script type="text/javascript">
        $(function () {
            hideLoading();
        });        
        $('#novogrupo').click(function (e) {
            e.preventDefault();
            showLoading();
            var url = $(this).data('url');
            $('section#main').load(url);
        });
    </script>
</body>
</html>
